using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

namespace QFramework.Adventure
{

    public class GameInit : MonoBehaviour
    {


        private void Start()
        {
            Init();
        }

        void Init()
        {
            ResKit.Init();

            UIKit.Root.SetResolution(2400, 1080, 0.5f);

            AudioKit.Settings.MusicVolume.Value = PlayerPrefs.GetFloat("MusicVolume", 1);
            AudioKit.Settings.SoundVolume.Value = PlayerPrefs.GetFloat("Soundvalue", 1);

            UIKit.OpenPanel<MainMenuPanel>();
            AudioKit.PlayMusic(GameConfig.Auido_BackgroundMusic);
        }

    }

}